package com.mrli.cat.weather.model;

import org.json.JSONObject;

import java.util.List;

/**
 * Created by MrLi on 2015/6/27.
 */
public class OpenWeatherMapBean {
    private double message;
    private int cnt;
    private String cod;
    private List<ListEntity> list;
    private CityEntity city;

    public void setMessage(double message) {
        this.message = message;
    }

    public void setCnt(int cnt) {
        this.cnt = cnt;
    }

    public void setCod(String cod) {
        this.cod = cod;
    }

    public void setList(List<ListEntity> list) {
        this.list = list;
    }

    public void setCity(CityEntity city) {
        this.city = city;
    }

    public double getMessage() {
        return message;
    }

    public int getCnt() {
        return cnt;
    }

    public String getCod() {
        return cod;
    }

    public List<ListEntity> getList() {
        return list;
    }

    public CityEntity getCity() {
        return city;
    }

    public class ListEntity {
        /**
         * clouds : 92
         * dt : 1435118400
         * humidity : 100
         * pressure : 1005.91
         * speed : 6.22
         * deg : 35
         * weather : [{"id":502,"icon":"10d","description":"heavy intensity rain","main":"Rain"}]
         * temp : {"min":19.7,"eve":20.14,"max":20.14,"morn":20.14,"night":19.7,"day":20.14}
         * rain : 16.99
         */
        private int clouds;
        private int dt;
        private int humidity;
        private double pressure;
        private double speed;
        private int deg;
        private List<WeatherEntity> weather;
        private TempEntity temp;
        private double rain;

        public void setClouds(int clouds) {
            this.clouds = clouds;
        }

        public void setDt(int dt) {
            this.dt = dt;
        }

        public void setHumidity(int humidity) {
            this.humidity = humidity;
        }

        public void setPressure(double pressure) {
            this.pressure = pressure;
        }

        public void setSpeed(double speed) {
            this.speed = speed;
        }

        public void setDeg(int deg) {
            this.deg = deg;
        }

        public void setWeather(List<WeatherEntity> weather) {
            this.weather = weather;
        }

        public void setTemp(TempEntity temp) {
            this.temp = temp;
        }

        public void setRain(double rain) {
            this.rain = rain;
        }

        public int getClouds() {
            return clouds;
        }

        public int getDt() {
            return dt;
        }

        public int getHumidity() {
            return humidity;
        }

        public double getPressure() {
            return pressure;
        }

        public double getSpeed() {
            return speed;
        }

        public int getDeg() {
            return deg;
        }

        public List<WeatherEntity> getWeather() {
            return weather;
        }

        public TempEntity getTemp() {
            return temp;
        }

        public double getRain() {
            return rain;
        }

        public class WeatherEntity {
            /**
             * id : 502
             * icon : 10d
             * description : heavy intensity rain
             * main : Rain
             */
            private int id;
            private String icon;
            private String description;
            private String main;

            public void setId(int id) {
                this.id = id;
            }

            public void setIcon(String icon) {
                this.icon = icon;
            }

            public void setDescription(String description) {
                this.description = description;
            }

            public void setMain(String main) {
                this.main = main;
            }

            public int getId() {
                return id;
            }

            public String getIcon() {
                return icon;
            }

            public String getDescription() {
                return description;
            }

            public String getMain() {
                return main;
            }
        }

        public class TempEntity {
            /**
             * min : 19.7
             * eve : 20.14
             * max : 20.14
             * morn : 20.14
             * night : 19.7
             * day : 20.14
             */
            private double min;
            private double eve;
            private double max;
            private double morn;
            private double night;
            private double day;

            public void setMin(double min) {
                this.min = min;
            }

            public void setEve(double eve) {
                this.eve = eve;
            }

            public void setMax(double max) {
                this.max = max;
            }

            public void setMorn(double morn) {
                this.morn = morn;
            }

            public void setNight(double night) {
                this.night = night;
            }

            public void setDay(double day) {
                this.day = day;
            }

            public double getMin() {
                return min;
            }

            public double getEve() {
                return eve;
            }

            public double getMax() {
                return max;
            }

            public double getMorn() {
                return morn;
            }

            public double getNight() {
                return night;
            }

            public double getDay() {
                return day;
            }
        }
    }

    public class CityEntity {
        /**
         * coord : {"lon":113.648613,"lat":34.757778}
         * id : 1784658
         * sys : {"population":0}
         * name : Zhengzhou
         * population : 0
         * country : CN
         */
        private CoordEntity coord;
        private int id;
        private SysEntity sys;
        private String name;
        private int population;
        private String country;

        public void setCoord(CoordEntity coord) {
            this.coord = coord;
        }

        public void setId(int id) {
            this.id = id;
        }

        public void setSys(SysEntity sys) {
            this.sys = sys;
        }

        public void setName(String name) {
            this.name = name;
        }

        public void setPopulation(int population) {
            this.population = population;
        }

        public void setCountry(String country) {
            this.country = country;
        }

        public CoordEntity getCoord() {
            return coord;
        }

        public int getId() {
            return id;
        }

        public SysEntity getSys() {
            return sys;
        }

        public String getName() {
            return name;
        }

        public int getPopulation() {
            return population;
        }

        public String getCountry() {
            return country;
        }

        public class CoordEntity {
            /**
             * lon : 113.648613
             * lat : 34.757778
             */
            private double lon;
            private double lat;

            public void setLon(double lon) {
                this.lon = lon;
            }

            public void setLat(double lat) {
                this.lat = lat;
            }

            public double getLon() {
                return lon;
            }

            public double getLat() {
                return lat;
            }
        }

        public class SysEntity {
            /**
             * population : 0
             */
            private int population;

            public void setPopulation(int population) {
                this.population = population;
            }

            public int getPopulation() {
                return population;
            }
        }
    }
}
